import {defineComponent , h, toRefs} from "@vue/runtime-core";
// import bunny from "../assets/bunny.png";
import bunnySelf from "../assets/bunny-self.png";

export default defineComponent({
      props: ["x", "y" , "height", "width", "isSelf"],
      setup(props, ctx){
            const {x, y , height, width, isSelf} = toRefs(props);
 
            return { x, y , height, width, isSelf }
      },
      render(ctx){ 
            return h("Container", [
                  h("Sprite", {
                        texture: bunnySelf,
                        x: ctx.x, 
                        y: ctx.y, 
                        height: ctx.height, 
                        width: ctx.width 
                  })
            ])
      }
})